package com.ruoyi.production.service.plug;

import java.util.List;
import com.ruoyi.production.domain.plug.PlugPurchase;

/**
 * 穴盘购买信息Service接口
 *
 * @author ruoyi
 * @date 2021-07-12
 */
public interface IPlugPurchaseService
{
    /**
     * 查询穴盘购买信息
     *
     * @param plugPurchaseId 穴盘购买信息ID
     * @return 穴盘购买信息
     */
    public PlugPurchase selectPlugPurchaseById(Long plugPurchaseId);

    /**
     * 查询穴盘购买信息列表
     *
     * @param plugPurchase 穴盘购买信息
     * @return 穴盘购买信息集合
     */
    public List<PlugPurchase> selectPlugPurchaseList(PlugPurchase plugPurchase);

    /**
     * 新增穴盘购买信息
     *
     * @param plugPurchase 穴盘购买信息
     * @return 结果
     */
    public int insertPlugPurchase(PlugPurchase plugPurchase);

    /**
     * 修改穴盘购买信息
     *
     * @param plugPurchase 穴盘购买信息
     * @return 结果
     */
    public int updatePlugPurchase(PlugPurchase plugPurchase);

    /**
     * 批量删除穴盘购买信息
     *
     * @param plugPurchaseIds 需要删除的穴盘购买信息ID
     * @return 结果
     */
    public int deletePlugPurchaseByIds(Long[] plugPurchaseIds);

    /**
     * 删除穴盘购买信息信息
     *
     * @param plugPurchaseId 穴盘购买信息ID
     * @return 结果
     */
    public int deletePlugPurchaseById(Long plugPurchaseId);
    /**
     * 插入穴盘购买表更新穴盘量表
     * @param plugPurchase
     * @return
     */
    public int insertPurchaseUpdateAmount(PlugPurchase plugPurchase);
}
